#pragma once
#include <iostream>
#include <string>
using namespace std;

class Car
{
private:
	string brand;
	int year;
	double price;

public:
	Car( void );
	Car( string b, int y, double p );

	void ReadFromConsole( );
	void WriteToConsole( );

	string GetBrand( ) { return brand; }
	void SetBrand( string b ) { brand = b; }

	int GetYear( ) { return year; }
	void SetYear( int y ) { year = y; }

	double GetPrice( ) { return price; }
	void SetPrice( double p ) { price = p; }

	~Car( void );
};

